const mongoose = require('mongoose');
const db = mongoose.createConnection('mongodb://127.0.0.1:27017/vue-small');
db.once('open',() => {
    console.log('mongoose连接成功');
});
module.exports = db;